package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by 甘静斌 on 2020-08-07 13:35
 */

/**
 *
 * 用户持久化操作接口
 */
public interface UserInfoRepository extends MongoRepository<UserInfo,String> {

    /**
     *
     * 通过手机号查询用户对象
     * @param phone
     * @return
     */
    UserInfo findByphone(String phone);

    List<UserInfo> findByCity(String name);
}
